home *** CD-ROM | disk | FTP | other *** search
/ Hyper Stacks 1994 May / Hyper Stacks (Pacific HiTech)(1994)[Mac].iso / MacTools / TC Prog Guide / app ƒ / macapp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-11-19  |  660 b   |  37 lines  |  [TEXT/KAHL]

  1. # ifdef        THINK_C
  2. /*
  3. *    FILE:        macapp.h
  4. *    AUTHOR:        R. Gonzalez
  5. *    CREATED:    August 28, 1990
  6. *
  7. *    Defines macintosh-specific application class.
  8. */
  9.  
  10. # ifndef    macapp_h
  11. # define    macapp_h
  12.  
  13. # include    "app.h"
  14. # include    "menubar.h"
  15.  
  16. # define    PARENT_CLASS    Mac_App
  17.  
  18. /************************************************************************
  19. *    simple Macintosh-only application.
  20. ************************************************************************/
  21. struct    Mac_App:Generic_App
  22. {
  23.     Menu_Bar        *menu_bar;
  24.     
  25.     boolean            init(void);
  26.     void            run(void);
  27.     void            query(char*,char[]);
  28.     void            respond(char*);
  29.     boolean            destroy(void);
  30. };
  31.  
  32. # endif
  33.  
  34. # else
  35. # include    "menapp.h"
  36. # endif
  37.